package com.resou.reader.api.entry;

import com.resou.reader.utils.PreferenceUtil;

/**
 * Created by ${Garrett} on 2018/9/20.
 * Contact me krouky@outlook.com
 */
public class UserInfoBean {
    /**
     * u : {"birthday":"2018-8-8","ic_qq":"2459374088","giftBlance":0,"consumptionLevel":1,"blance":1213,"gender":1,"openId":"","nickName":"昵称","sign":"个签","head_pic":"https://rs.resouxs.com/images/defaultAvatar.png","vipLevel":0,"password":"0B4E7A0E5FE84AD35FB5F95B9CEEAC79","wechart":"oY5Tf0jyULNhw_w9teBfsJvoAm7k","createTime":1532916933000,"phone":"18601381457","id":81}
     * clientVersion : 4154555541155
     */

    private UBean u;
    private String clientVersion;

    public UBean getU() {
        return u == null ? new UBean() : u;
    }

    public void setU(UBean u) {
        this.u = u;
    }

//    public String getClientVersion() {
//        return clientVersion;
//    }
//
//    public void setClientVersion(String clientVersion) {
//        this.clientVersion = clientVersion;
//    }

    public static class UBean {
        /**
         * birthday : 2018-8-8
         * ic_qq : 2459374088
         * giftBlance : 0
         * consumptionLevel : 1
         * blance : 1213
         * gender : 1
         * openId :
         * nickName : 昵称
         * sign : 个签
         * head_pic : https://rs.resouxs.com/images/defaultAvatar.png
         * vipLevel : 0
         * password : 0B4E7A0E5FE84AD35FB5F95B9CEEAC79
         * wechart : oY5Tf0jyULNhw_w9teBfsJvoAm7k
         * createTime : 1532916933000
         * phone : 18601381457
         * id : 81
         */

        private String birthday;
        private String qq;
        private double giftBlance;
        private int consumptionLevel;
        private double blance;
        private int gender;
        private String openId;
        private String nickName;
        private String sign;
        private String head_pic;
        private int vipLevel;
        private String password;
        private String wechart;
        private long createTime;
        private String phone;
        private String userType;
        private int id;
        private int readType;
        private String energy;
        private int isVipUser;//是否时VIp
        private String vipEndTime;//vip到期时间

        public String getEnergy() {
            return energy;
        }

        public void setEnergy(String energy) {
            this.energy = energy;
        }

        public int getReadType() {
            return readType;
        }

        public void setReadType(int readType) {
            this.readType = readType;
        }

        public String getBirthday() {
            return birthday;
        }

        public void setBirthday(String birthday) {
            this.birthday = birthday;
        }

        public String getQq() {
            return qq;
        }

        public void setQq(String qq) {
            this.qq = qq;
        }

        public double getGiftBlance() {
            return giftBlance;
        }

        public void setGiftBlance(double giftBlance) {
            this.giftBlance = giftBlance;
        }

        public int getConsumptionLevel() {
            return consumptionLevel;
        }

        public void setConsumptionLevel(int consumptionLevel) {
            this.consumptionLevel = consumptionLevel;
        }

        public String getUserType() {
            return userType;
        }

        public void setUserType(String userType) {
            this.userType = userType;
        }

        public double getBlance() {
            return blance;
        }

        public void setBlance(double blance) {
            this.blance = blance;
        }

        public int getGender() {
            return gender;
        }

        public void setGender(int gender) {
            this.gender = gender;
        }

        public String getOpenId() {
            return openId;
        }

        public void setOpenId(String openId) {
            this.openId = openId;
        }

        public String getNickName() {
            return nickName;
        }

        public void setNickName(String nickName) {
            this.nickName = nickName;
        }

        public String getSign() {
            return sign;
        }

        public void setSign(String sign) {
            this.sign = sign;
        }

        public String getHead_pic() {
            return head_pic;
        }

        public void setHead_pic(String head_pic) {
            this.head_pic = head_pic;
        }

        public int getVipLevel() {
            return vipLevel;
        }

        public void setVipLevel(int vipLevel) {
            this.vipLevel = vipLevel;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getWechart() {
            return wechart;
        }

        public void setWechart(String wechart) {
            this.wechart = wechart;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }


        public int isVipUser() {
            return isVipUser;
        }

        public void setVipUser(int vipUser) {
            isVipUser = vipUser;
        }

        public String getVipEndTime() {
            return vipEndTime;
        }

        public void setVipEndTime(String vipEndTime) {
            this.vipEndTime = vipEndTime;
        }
    }

    public String getClientVersion() {
        return clientVersion;
    }

    public void setClientVersion(String clientVersion) {
        this.clientVersion = clientVersion;
    }

}
